{% extends 'layout.html' %}
{% block lk %}
    {% load static %}
    <title>{{ type_name }}商品</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">
{% endblock %}
{% block content %}
    <div class="navbar_con">
		<div class="navbar clearfix">
			<div class="subnav_con fl">
				<h1>全部商品分类</h1>
				<span></span>
				<ul class="subnav">
					<li><a href="http://127.0.0.1:8000/type/list/1/0/" class="fruit">新鲜水果</a></li>
					<li><a href="http://127.0.0.1:8000/type/list/2/0/" class="seafood">海鲜水产</a></li>
					<li><a href="http://127.0.0.1:8000/type/list/3/0/" class="meet">猪牛羊肉</a></li>
					<li><a href="http://127.0.0.1:8000/type/list/4/0/" class="egg">禽类蛋品</a></li>
					<li><a href="http://127.0.0.1:8000/type/list/5/0/" class="vegetables">新鲜蔬菜</a></li>
					<li><a href="http://127.0.0.1:8000/type/list/6/0/" class="ice">速冻食品</a></li>
				</ul>
			</div>
			<ul class="navlist fl">
				<li><a href="http://127.0.0.1:8000/home/">首页</a></li>
			</ul>
		</div>
	</div>
	<div class="breadcrumb">
		<a href="http://127.0.0.1:8000/home/">全部分类</a>
		<span>></span>
		<a href="http://127.0.0.1:8000/type/list/{{ type_id }}/0/">{{ type_name }}</a>
	</div>

	<div class="main_wrap clearfix">
		<div class="l_wrap fl clearfix">
			<div class="new_goods">
				<h3>好品推荐</h3>
				<ul>
					{% for data in new_goods_data %}
                        <li>
                            <a href="http://127.0.0.1:8000/detail/{{ data.id }}/"><img src="/static/img/{{ data.img }}"></a>
                            <h4><a href="#">{{ data.title }}</a></h4>
                            <div class="prize">￥{{ data.price }}</div>
                        </li>
                    {% endfor %}
				</ul>
			</div>
		</div>

		<div class="r_wrap fr clearfix">
			<div class="sort_bar">
				<a href="http://127.0.0.1:8000/type/list/{{ type_id }}/0/" class="active">默认</a>
				<a href="http://127.0.0.1:8000/type/list/{{ type_id }}/1/">价格</a>
				<a href="http://127.0.0.1:8000/type/list/{{ type_id }}/2/">人气</a>
			</div>

			<ul class="goods_type_list clearfix">
                {% for item in goods_data %}
                    <li>
                        <a href="http://127.0.0.1:8000/detail/{{ item.id }}/"><img src="/static/img/{{ item.img }}"></a>
                        <h4><a href="http://127.0.0.1:8000/detail/{{ item.id }}/">{{ item.title }}</a></h4>
                        <div class="operate">
                            <span class="prize">￥{{ item.price }}</span>
                            <span class="unit">{{ item.price }}/500g</span>
                            <a href="#" class="add_goods" title="加入购物车"></a>
                        </div>
                    </li>
                {% endfor %}
			</ul>
            <div class="sort_bar">
				<ul class="pagination">
                    {{ page_string }}
                </ul>
			</div>


		</div>

	</div>



{% endblock %}

{% block js %}

{% endblock %}

